import json

class case_obj(object):
    def case1_xxx(self,devices):
        q03 = {'1': '0'}
        q03 = json.dumps(q03)
        return q03
    def case2_xxx(self,decives):
        q03 = {'1': '0'}
        q03 = json.dumps(q03)
        return q03


def z01(_item,devices):
    if _item =='a01':
        result = case_obj().case1_xxx(devices)
    elif _item == 'a02':
        result = case_obj().case2_xxx(devices)
    else:
        result =None
    return result

_item = 'a01'
devices = 'a01'
result = eval(z01(_item,devices))
print(result)